package thread;

/*
 * @author zzr
 * @date: 2025/04/14  11:26
 * @description: 继承 Thread 类创建线程~
 */
class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println("hello thread of extends");
    }
}
public class Thread1 {
    public static void main(String[] args) {
        Thread t = new MyThread();
        t.start();
    }
}
